﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kooboo.HtmlFunc;
using Kooboo.HtmlFunc.Providers;
using Kooboo.CMS.SiteConverter.Providers;

namespace Kooboo.CMS.SiteConverter.Parser.WebForm
{
    public class HtmlBlockPartParser : ParserBase, IParser<IHtmlBlockPart>
    {
        #region IParser<IHtmlBlockPart> Members

        public void Parse(IHtmlBlockPart obj)
        {
            var renderCode = "<%=Html.FrontHtml().RenderHtmlBlock(\"{0}\")%>";
            Razor.HtmlBlockPartParser.FillResult(this.Context, obj, renderCode);
        }

        #endregion
    }
}
